<? 
/***************************************************************************
 *                            dsp_view_film.php
 *                         -----------------------
 *   begin                : Friday, Aug 19, 2005
 *   copyright            : (C) 2005 cyber8 netWorks
 *   email                : support@cyber8.net 
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/
  
$preview_flag        = $_GET["pv"]; 
$selected_file_index = $_GET["f"]; 
 
if (!$is_admin&&($view=="")) 
{ 
    print '<div style="width:expression(document.body.offsetWidth-'.$window_width_offset.');background-color:white;'.$panelon.'" align=center>';
	if ($edit=="b") 
	{
	    if (strlen($filename)>0) 
		{
		    print "<img src='$href?i=pc' onclick='goimage(".($selected_file_index-1).")'>";
		    print "<img src='$href?i=pd' onclick='goimage(".($selected_file_index+1).")'>";
		}
		else
		{
		    print "No files in this folder";
		}
	}
	print "</div>";

	print '<div id=Dx style="width:expression(document.body.offsetWidth-'.$window_width_offset.');';
	print 'overflow:auto;background-color:white;';  
	if ($preview_flag=="") 
	{
		print 'height:140;'; 
	}
	print $panelon.'" onscroll="scroll_display()"> '; 
	if (($edit=="b")&&($preview_flag==""))
	{
	    include ("dsp_filelist_thumbs.php"); 
	}
	else if ($preview_flag=="on")
	{
	    print "<div align=right><font face=webdings>5</font><a style=color:blue href=\"javascript:fb_edit('pv', '')\"><u>Show thumbnails</u></a></div>"; 
	}
	print "</div>";

} 
else if ($view=="s") 
{
    include ("dsp_slide_scripts.php");    
}  ?>